.module
  %h4= @config["title"]
  - cache(@plugin.name,:ttl=>15.minutes) do
    %ul
      %li
        - if session[:loadedsettings]["proxy_use"]==1
          - h=Net::HTTP::Proxy(session[:loadedsettings]["proxy_addr"], session[:loadedsettings]["proxy_port"]).new(@config["host"].to_s,80)
        - else
          - h=Net::HTTP.new(@config["host"].to_s,80)
        - resp,data=h.get("/main.php?g2_view=imageblock.External&g2_blocks=randomImage&g2_show=nothing")
        - data.each do |line|
          = line
